Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
authorEwan Mellor <ewan@xensource.com>
Tue, 27 Mar 2007 13:34:34 +0000 (14:34 +0100)
committerEwan Mellor <ewan@xensource.com>
Tue, 27 Mar 2007 13:34:34 +0000 (14:34 +0100)
on a clean machine.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 7d468cb43e7d960712ef0fe2263b1c313fdc8f13..4b155c3dacb402ef852e5b578f331ac5b16c2ee5 100644 (file)
@@ -152,8 +152,9 @@ def recreate(info, priv):
     try:
         vmpath = xstransact.Read(dompath, "vm")
         if not vmpath:
-            log.warn('/local/domain/%d/vm is missing. recreate is '
-                     'confused, trying our best to recover' % domid)
+            if not priv:
+                log.warn('/local/domain/%d/vm is missing. recreate is '
+                         'confused, trying our best to recover' % domid)
             needs_reinitialising = True
             raise XendError('reinit')